package com.reformer.commons.utils;

import java.util.HashMap;
import java.util.Map;

public class Wrapper {

    public static Map<String, Object> wrapRequestHeader(Object obj, String cmd) {
        Map<String, Object> wrapMap = new HashMap<String, Object>();
        wrapMap.put("id", "1");
        wrapMap.put("uuid", "0000");

		wrapMap.put("cmd", cmd);
        wrapMap.put("ver", "1.0");
        if (obj == null) {
            obj = new HashMap();
        }
        wrapMap.put("data", obj);
        return wrapMap;
    }
}
